//
//  Team9BaseTableViewCell2.m
//  Team9Project
//
//  Created by 朱嘉祺 on 15/10/28.
//  Copyright © 2015年 apple. All rights reserved.
//

#import "Team9BaseTableViewCell2.h"

@implementation Team9BaseTableViewCell2

#pragma mark 夜间模式
- (void)changecolor{
    if ([Team9EveningType shareEvening].eveningFailling) {
        self.backgroundColor = [UIColor colorWithWhite:0.15 alpha:1];
        self.textLabel.textColor = [UIColor whiteColor];
    } else {
        self.backgroundColor = [UIColor colorWithWhite:0.95 alpha:1];
        self.textLabel.textColor = [UIColor blackColor];
    }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleDefault;
        self.textLabel.highlightedTextColor = [UIColor blackColor];
        self.selectedBackgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"222"]];
    }
    return self;
}

- (void)layoutSubviews{
    [super layoutSubviews];

}
 
@end
